﻿using System;
using System.Collections.Generic;
using System.Text;

    namespace _018传值_输出_引用_数组_具名_可选参数_2_
    {
        internal class Program
        {
            static void Main(string[] args)
            {
                Student stu = new Student() { Name = "Che"};
                SomeMehtod(stu);
                Console.WriteLine("{0},{1}", stu.GetHashCode(), stu.Name);
            }

            static void SomeMehtod(Student stu)
            {
                stu = new Student() { Name = "People" };
                Console.WriteLine("{0},{1}",stu.GetHashCode(),stu.Name);
            }
        }

        class Student
        {
            public string  Name { get; set; }
        }
    }
